﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using WinnerCMS.Common;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.BLL
{
    /// <summary>
    /// easyui 数据源
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [DataContractAttribute]
    public class JqueryDatagridDataSource<T>
    {
        /// <summary>
        /// 相当于 RecordCount
        /// </summary>
        [DataMember(Name = "total")]
        public int total { get; set; }

        /// <summary>
        /// 相当于 PageSize
        /// </summary>
        [DataMember(Name = "rows")]
        public T Rows { get; set; }
    }

    [DataContractAttribute]
    public class EasyUIrow
    {
        [DataMember(Name = "id")]
        public int Id { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "_parentId")]
        public int ParentId { get; set; }

        [DataMember(Name = "state")]
        public string State { get; set; }
    }
}